Sum of squares

In mathematics, statistics and elsewhere, sums of squares occur in a number of contexts:

Statistics
Number theory
Algebra and algebraic geometry
Euclidean geometry and other inner-product spaces